﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="QuanLyPhuCap.aspx.cs"
    Inherits="ChamCong.Admin.QuanLyPhuCap" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <div>
                    Năm:
                    <asp:TextBox ID="txtNam" runat="server"></asp:TextBox>
                    Tháng:
                    <asp:DropDownList ID="drThang" runat="server">
                        <asp:ListItem Value="1">Tháng 1</asp:ListItem>
                        <asp:ListItem Value="2">Tháng 2</asp:ListItem>
                        <asp:ListItem Value="3">Tháng 3</asp:ListItem>
                        <asp:ListItem Value="4">Tháng 4</asp:ListItem>
                        <asp:ListItem Value="5">Tháng 5</asp:ListItem>
                        <asp:ListItem Value="6">Tháng 6</asp:ListItem>
                        <asp:ListItem Value="7">Tháng 7</asp:ListItem>
                        <asp:ListItem Value="8">Tháng 8</asp:ListItem>
                        <asp:ListItem Value="9">Tháng 9</asp:ListItem>
                        <asp:ListItem Value="10">Tháng 10</asp:ListItem>
                        <asp:ListItem Value="11">Tháng 11</asp:ListItem>
                        <asp:ListItem Value="12">Tháng 12</asp:ListItem>
                    </asp:DropDownList>
                    <br />
                    Phòng Ban:
                    <asp:DropDownList ID="drPhongBan" runat="server" DataSourceID="DSPhongBan" DataTextField="TenPB"
                        DataValueField="MaPB">
                    </asp:DropDownList>
                    <asp:ObjectDataSource ID="DSPhongBan" runat="server" SelectMethod="LayTatCa" TypeName="BusinessLogicLayer.PhongBanBLL">
                    </asp:ObjectDataSource>
                    Họ Tên Nhân Viên:<asp:TextBox ID="txtHoTen" runat="server"></asp:TextBox>
                    <asp:Button class="button" ID="btnXem" runat="server" Text="Xem" OnClick="btnXem_Click" />
                    <asp:Button class="button" ID="btnXemTatCa" runat="server" Text="Xem Tất Cả" OnClick="btnXemTatCa_Click" />
                </div>
                <a href="../LanhDao/QuanLyLoaiPC.aspx">Quản lý loại phụ cấp</a>
                <div>
                    <div style="float: left;">
                        <asp:GridView ID="dgvPhuCap" runat="server" OnRowDataBound="dgvPhuCap_RowDataBound"
                            BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"
                            CellPadding="3" ForeColor="Black" GridLines="Vertical" AllowPaging="True" PageSize="10"
                            OnPageIndexChanging="dgvPhuCap_PageIndexChanging">
                            <AlternatingRowStyle BackColor="#CCCCCC" />
                            <Columns>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Button ID="btnSua" runat="server" Text="Sửa" OnClick="btnSua_Click" />
                                    </ItemTemplate>
                                    <HeaderStyle Width="20px" />
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#CCCCCC" />
                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" CssClass="pager" />
                            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#F1F1F1" />
                            <SortedAscendingHeaderStyle BackColor="#808080" />
                            <SortedDescendingCellStyle BackColor="#CAC9C9" />
                            <SortedDescendingHeaderStyle BackColor="#383838" />
                        </asp:GridView>
                    </div>
                    <div style="float: left; padding-left: 20px;">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <table runat="server" id="tbCTPhuCap">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lbTextHoTen" runat="server" Text="Họ và Tên:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lbHoTen" runat="server" Font-Bold="True"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lbTextMaNV" runat="server" Text="Mã Số:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lbMaSo" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lbTextPhuCap" runat="server" Text="Phụ Cấp:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:CheckBoxList ID="cblPC" runat="server" DataSourceID="dsPhuCap" DataTextField="TenPhuCap"
                                                DataValueField="MaPhuCap">
                                            </asp:CheckBoxList>
                                            <asp:ObjectDataSource ID="dsPhuCap" runat="server" SelectMethod="LayTatCa" TypeName="BusinessLogicLayer.PhuCapBLL">
                                            </asp:ObjectDataSource>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="center">
                                            <asp:Button class="button" ID="btnApDung" runat="server" Text="Áp Dụng" OnClick="btnApDung_Click" />
                                        </td>
                                    </tr>
                                </table>
                                <div>
                                    <sbc:sbcMsgBox ID="sbcMsgBox" runat="server" UseJQuery="True" />
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
